package com.bbzn.device.client.service.impl;

import org.springframework.stereotype.Service;
import javax.annotation.Resource;
import java.util.List;
import com.bbzn.device.client.dataobject.ProcessFlow;
import com.bbzn.device.client.dao.process.ProcessFlowMapper;
import com.bbzn.device.client.service.ProcessFlowService;

@Service
public class ProcessFlowServiceImpl implements ProcessFlowService {

    @Resource
    private ProcessFlowMapper processFlowMapper;

    @Override
    public int deleteByPrimaryKey(Long processId) {
        return processFlowMapper.deleteByPrimaryKey(processId);
    }

    @Override
    public int insert(ProcessFlow record) {
        return processFlowMapper.insert(record);
    }

    @Override
    public int insertOrUpdate(ProcessFlow record) {
        return processFlowMapper.insertOrUpdate(record);
    }

    @Override
    public int insertOrUpdateSelective(ProcessFlow record) {
        return processFlowMapper.insertOrUpdateSelective(record);
    }

    @Override
    public int insertSelective(ProcessFlow record) {
        return processFlowMapper.insertSelective(record);
    }

    @Override
    public ProcessFlow selectByPrimaryKey(Long processId) {
        return processFlowMapper.selectByPrimaryKey(processId);
    }

    @Override
    public int updateByPrimaryKeySelective(ProcessFlow record) {
        return processFlowMapper.updateByPrimaryKeySelective(record);
    }

    @Override
    public int updateByPrimaryKey(ProcessFlow record) {
        return processFlowMapper.updateByPrimaryKey(record);
    }

    @Override
    public List<ProcessFlow> findByAll(ProcessFlow processFlow) {
        return processFlowMapper.findByAll(processFlow);
    }

    @Override
    public int updateBatch(List<ProcessFlow> list) {
        return processFlowMapper.updateBatch(list);
    }

    @Override
    public int updateBatchSelective(List<ProcessFlow> list) {
        return processFlowMapper.updateBatchSelective(list);
    }

    @Override
    public int batchInsert(List<ProcessFlow> list) {
        return processFlowMapper.batchInsert(list);
    }

    @Override
    public ProcessFlow findOneByProcessId(Long processId) {
        return processFlowMapper.findOneByProcessId(processId);
    }

    @Override
    public int findCountByAll(ProcessFlow processFlow) {
        return processFlowMapper.findCountByAll(processFlow);
    }

    @Override
    public List<Long> findIdByAll(ProcessFlow processFlow) {
        return processFlowMapper.findIdByAll(processFlow);
    }

    @Override
    public int batchDel(List<Long> ids) {
        return processFlowMapper.batchDel(ids);
    }
}

